package org.vshe.improve.spring.prospring3.ch5;

public class StandardOutputMessageRenderer implements MessageRenderer{
	private MessageProvider messageProvider;
	
	public void render() {
		System.out.println("RENDER: " + getMessageProvider().getMessage());
	}

	public void setMessageProvider(MessageProvider provider) {
		messageProvider = provider;
	}

	public MessageProvider getMessageProvider() {
		return messageProvider ;
	}

}
